import { getPostById } from "@/utils/resolveMarkdown";
import "../styles.css";

export default async function Article({
  params: { id },
}: {
  params: { id: string };
}) {
  const data = await getPostById(decodeURI(id) as string);
  return (
    <div id="m-mdcontent">
      {/* <h1 style={{ fontSize: 18 }}>asdasdsadsa</h1> */}
      {/* <title style={{ fontSize: 18 }}>{data.title}</title> */}
      {/* <article className="content"> */}
      <article>
        <div dangerouslySetInnerHTML={{ __html: data.htmlContent }} />
      </article>
    </div>
  );
}
